package com.zycfc.zsf.boot.job.core;

import com.dangdang.ddframe.job.executor.handler.*;
import org.slf4j.*;

public class ZsfJobExceptionHandler implements JobExceptionHandler
{
    private static final Logger log;
    
    public void handleException(final String jobName, final Throwable cause) {
        ZsfJobExceptionHandler.log.error(String.format("Job '%s' exception occur in job processing", jobName), cause);
    }
    
    static {
        log = LoggerFactory.getLogger((Class)ZsfJobExceptionHandler.class);
    }
}
